<?php
/**
 * Created by PhpStorm.
 * User: WangShiPeng
 * Date: 2018/4/18
 * Time: 8:57
 */

namespace app\index\controller;


use think\Controller;
use app\index\model\Carousel as CarouselModel;

class Carousel extends Controller
{
    public function index()
    {
        $arr = (new CarouselModel)->where("index","1")->select();
        return json($arr);
    }

}